package com.lujianbuping.system.opportunityprojectmanagementsystem.dao;

import com.lujianbuping.system.opportunityprojectmanagementsystem.entity.PositionEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PositionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PositionEntity record);

    int insertSelective(PositionEntity record);

    PositionEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PositionEntity record);

    int updateByPrimaryKey(PositionEntity record);
    
    List<PositionEntity> selectAll(@Param("orderBy") String orderBy);

	List<PositionEntity> selectByKeyWithPagination(@Param("key") String key, @Param("pageNo") int pageNo,
                                                   @Param("pageSize") int pageSize);
}